/*
 * @Author: zhuhaohua 250293786@qq.com
 * @Date: 2024-01-02 10:28:40
 * @LastEditors: zhuhaohua 250293786@qq.com
 * @LastEditTime: 2024-01-02 15:45:36
 * @FilePath: \heart-backed\src\api\banner.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/api/21232f297a57a5a743894a0e4a801fc3/layout/banner',
    method: 'get',
    params
  })
}
export function editBanner(data, params) {
  return request({
    url: '/api/21232f297a57a5a743894a0e4a801fc3/layout/banner/' + data,
    method: 'post',
    params
  })
}
export function createBanner(params) {
  return request({
    url: '/api/21232f297a57a5a743894a0e4a801fc3/layout/banner',
    method: 'post',
    data: params
  })
}
export function delBanner(data) {
  return request({
    url: '/api/21232f297a57a5a743894a0e4a801fc3/layout/banner/' + data,
    method: 'DELETE'
  })
}
